package com.contractpage.ec.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.contractpage.common.persistence.Page;
import com.contractpage.ec.dao.ConfirtrackDetailDao;
import com.contractpage.ec.service.ConfirtrackDetailService;
import com.contractpage.ec.entity.ConfirtrackDetail;



/**
 * 
 * ConfirtrackDetailServiceImpl数据库操作接口类
 * 
 **/
@Transactional
@Service
public class ConfirtrackDetailServiceImpl implements ConfirtrackDetailService{
	@Autowired
	private ConfirtrackDetailDao confirtrackDetailDao;
	@Override
	public Page<ConfirtrackDetail> findList(Page<ConfirtrackDetail> page,ConfirtrackDetail entity){
		entity.setPage(page);
		page.setList(confirtrackDetailDao.findList(entity));
		return page;
	}
	@Override
	public int insert(ConfirtrackDetail entity){
		entity.preInsert("");
		return confirtrackDetailDao.insert(entity);
	}
	@Override
	public int update(ConfirtrackDetail entity){
		entity.preUpdate();
		return confirtrackDetailDao.update(entity);
	}
	@Override
	public int delete(ConfirtrackDetail entity){
		 return confirtrackDetailDao.delete(entity);
	}
}